#include "ATD.h"

typedef struct LNode
{
	ElemType data;
	struct LNode *next;
}LNode,*LinkList;

Status InitList(LinkList L){
	L = (LinkList)malloc(sizeof(LNode));
	if(!L)exit(OVERFLOW);
	L->next = NULL;
	printf("Initialed.\n");
	return OK;
}

Status DestroyList(LinkList L){
	LinkList tmp = L->next;
	while(tmp){
		free(tmp);
		tmp = tmp->next;
	}
	return OK;
}

int main()
{
	LinkList L;
	InitList(L);
	DestroyList(L);
	return 0;
}